<?php
echo $this->Html->css('index.style');
?>
<div class="container"style="min-height:900px">
    <div class="mobileDetails index_view">

        <div class="row">
            <div class="header_bottom">
                <div class="header_bottom_left1">
                    <div id="slides">


                        <ul class="slides">
                            <li>
                                <?php echo $this->Html->image('promotions1.jpg', array('alt' => 'Sky the Mobile shop', 'border' => '0', 'data-src' => 'holder.js/100%x100','url'=>array( 'controller'=>'indexpage','action'=>'view_promotion1'))); ?>

                            </li>
                            <li>
                                <a href="preview-2.html">
                                    <?php echo $this->Html->image('promotions2.jpg', array('alt' => 'Sky the Mobile shop', 'border' => '0', 'data-src' => 'holder.js/100%x100','url'=>array( 'controller'=>'indexpage','action'=>'view_promotion1'))); ?>
                                </a>
                            </li>
                            <li>
                                <a href="preview-2.html">
                                    <?php echo $this->Html->image('promotions3.jpg', array('alt' => 'Sky the Mobile shop', 'border' => '0', 'data-src' => 'holder.js/100%x100','url'=>array( 'controller'=>'indexpage','action'=>'view_promotion1'))); ?>
                                </a>
                            </li>
                            <li>
                                <a href="preview-2.html">
                                    <?php echo $this->Html->image('promotions4.jpg', array('alt' => 'Sky the Mobile shop', 'border' => '0', 'data-src' => 'holder.js/100%x100','url'=>array( 'controller'=>'indexpage','action'=>'view_promotion1'))); ?>
                                </a>
                            </li>

                        </ul>

                </div>
                    <div class="clear"></div>
                </div>
                <div class="header_bottom_right_images">

<!--                    </div>-->
<!---->
<!---->
<!---->

                </div>
                <div class="clear"></div>
            </div>
        </div>
        <div class="row" id="list_product">
                <?php foreach ($mobileDetails as $mobileDetail): ?>
                    <div class="col-md-2">
                        <div class="thumbnail img-responsive" >
                            <?php echo $this->Html->image($mobileDetail['Modell']['image_url'],array('fullBase' => true)); ?>
                            <div class="caption">
                                <h4><?php echo $this->Html->link($mobileDetail['Modell']['mobile_name'], array('controller' => 'indexpage', 'action' => 'view_mobiledetail', $mobileDetail['MobileDetail']['id'])); ?></h4>
                                <p><?php echo h($mobileDetail['Modell']['retail_price']); ?> VND</p>

                                <?php echo $this->Form->create('Cart',array('id'=>'add-form','url'=>array('controller'=>'carts','action'=>'add')));?>
                                <?php echo $this->Form->hidden('product_id',array('value'=>$mobileDetail['MobileDetail']['id']))?>
                                <?php echo $this->Form->button('Add to cart',array('class'=>'btn btn-primary'));?>
                                <?php echo $this->Form->end();?>
                            </div>
                        </div>
                    </div>

                <?php endforeach; ?>
                <div class="paging">
                    <?php
                    echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
                    echo $this->Paginator->numbers(array('separator' => ''));
                    echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
                    ?>
                </div>
        </div>
    </div>
</div>

